//
//  WOHistorySection.m
//  WOPrototype
//
//  Created by Olof Millberg on 2010-04-28.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import "WOHistorySection.h"


@implementation WOHistorySection
@synthesize historyEntries;

+ (id) historySectionWithList:(NSMutableArray *)list
{
	WOHistorySection *section = [[[WOHistorySection alloc] initWithList:list] autorelease];
	return section;
}

- (id) initWithList:(NSMutableArray *)list
{
	if (self = [super init])
	{
		self.historyEntries = list;
	}
	return self;
}

- (NSInteger) numberOfRows
{
	return [historyEntries count];
}

- (NSString *) identifierAtRow:(NSInteger)row
{
	return @"HistoryEntryCell";
}

- (CGFloat) heightForRow:(NSInteger)row
{
	return 64;
}

@end
